package com.mshop.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.mshop.fw.orm.Persistent;

/**
 * SysMenu entity. @author MyEclipse Persistence Tools
 */

public class SysMenu extends Persistent implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// Fields

	private Long id;
	private String name;
	private Long fatherId;
	private String url;
	private Date savetime;
	private Long idx;
	private SysPower sysPower;

	/**
	 * @return the sysPower
	 */
	public SysPower getSysPower() {
		return sysPower;
	}

	/**
	 * @param sysPower
	 *            the sysPower to set
	 */
	public void setSysPower(SysPower sysPower) {
		this.sysPower = sysPower;
	}

	/**
	 * @return the idx
	 */
	public Long getIdx() {
		return idx;
	}

	/**
	 * @param idx
	 *            the idx to set
	 */
	public void setIdx(Long idx) {
		this.idx = idx;
	}

	private List<SysMenu> sysMenuList = new ArrayList<SysMenu>();

	// Constructors

	/**
	 * @return the sysMenuList
	 */
	public List<SysMenu> getSysMenuList() {
		return sysMenuList;
	}

	/**
	 * @param sysMenuList
	 *            the sysMenuList to set
	 */
	public void setSysMenuList(List<SysMenu> sysMenuList) {
		this.sysMenuList = sysMenuList;
	}

	/** default constructor */
	public SysMenu() {
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the fatherId
	 */
	public Long getFatherId() {
		return fatherId;
	}

	/**
	 * @param fatherId
	 *            the fatherId to set
	 */
	public void setFatherId(Long fatherId) {
		this.fatherId = fatherId;
	}

	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * @param url
	 *            the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * @return the savetime
	 */
	public Date getSavetime() {
		return savetime;
	}

	/**
	 * @param savetime
	 *            the savetime to set
	 */
	public void setSavetime(Date savetime) {
		this.savetime = savetime;
	}

}